package me.keiwu.pub.data.service;

import lombok.Data;

import java.util.Date;

/**
 * Created by kei on 22/03/2018.
 */
@Data
public class MedalPresentBean {

    private Long userId;
    private String nickName;
    private Integer medalId;
    private String name;
    private String address;
    private String telephone;
    private String zip;
    private Boolean hasSent;
    private Date createdDate;
    private Date modifiedDate;
    private String medalName;

    public void setCreatedTime(Long createdTime) {
        if (createdTime != null) this.createdDate = new Date(createdTime);
    }
    public void setLastModifiedTime(Long lastModifiedTime) {
        if (lastModifiedTime != null) this.modifiedDate = new Date(lastModifiedTime);
    }
    public void setMedal(MedalBean medal) {
        if (medal != null) this.medalName = medal.getName();
    }

    public Long getCreatedTime() {
        return null;
    }
    public Long getLastModifiedTime() {
        return null;
    }
    public MedalBean getMedal() {
        return null;
    }
}
